﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpellChecker.Logic
{
    public class Wortverarbeiter
    {
        public bool CheckWords(List<string> InputWords, Dictionary<string, string> Dictionary)
        {
            var ContainsInvalidWords = false;

            foreach (var InputWord in InputWords)
            {
                if  (!Dictionary.ContainsKey(InputWord))
                {
                    ContainsInvalidWords = true;
                    return ContainsInvalidWords;
                }
            }
            return ContainsInvalidWords;
        }
    }
}
